# Copyright (C) 2009 Joshua Marsh <joshua@icub3d.com>
#  
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without 
# modifications, as long as this notice is preserved.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
AM_CFLAGS=-static -Wall -pedantic -ggdb --std=c99
AM_LDFLAGS = -L$(top_srcdir)/src
INCLUDE = -I$(top_srcdir)/src

EXTRA_DIST = test_btree.h test_buffer.h test_function_prototypes.h	\
	test_heap.h test_helpers.h test_list.h test_list_sort.h		\
	test_map.h test_pqueue.h test_queue.h test_set.h test_stack.h	\
	test_string.h test_tree.h test_utilities.h test_vector.h	\
	test_logger.h

noinst_PROGRAMS=run_tests run_test_list run_test_stack run_test_queue	\
	run_test_buffer run_test_string run_test_function_prototypes	\
	run_test_btree run_test_set run_test_map run_test_utilities	\
	run_test_vector run_test_list_sort run_test_pqueue		\
	run_test_tree run_test_heap run_test_logger

run_tests_LDADD=-ladt -lcunit
run_tests_SOURCES=run_tests.c test_helpers.c test_list.c test_stack.c	\
	test_queue.c test_buffer.c test_string.c			\
	test_function_prototypes.c test_btree.c test_set.c test_map.c	\
	test_utilities.c test_vector.c test_list_sort.c test_pqueue.c	\
	test_tree.c test_heap.c test_logger.c

run_test_list_LDADD=-ladt -lcunit
run_test_list_SOURCES=run_test_list.c test_helpers.c test_list.c

run_test_stack_LDADD=-ladt -lcunit
run_test_stack_SOURCES=run_test_stack.c test_helpers.c test_stack.c 

run_test_queue_LDADD=-ladt -lcunit
run_test_queue_SOURCES=run_test_queue.c test_helpers.c test_queue.c 

run_test_buffer_LDADD=-ladt -lcunit
run_test_buffer_SOURCES=run_test_buffer.c test_helpers.c test_buffer.c 

run_test_string_LDADD=-ladt -lcunit
run_test_string_SOURCES=run_test_string.c test_helpers.c test_string.c 

run_test_function_prototypes_LDADD=-ladt -lcunit
run_test_function_prototypes_SOURCES=run_test_function_prototypes.c	\
	test_helpers.c test_function_prototypes.c

run_test_btree_LDADD=-ladt -lcunit
run_test_btree_SOURCES=run_test_btree.c test_helpers.c test_btree.c 

run_test_set_LDADD=-ladt -lcunit
run_test_set_SOURCES=run_test_set.c test_helpers.c test_set.c 

run_test_map_LDADD=-ladt -lcunit
run_test_map_SOURCES=run_test_map.c test_helpers.c test_map.c 

run_test_utilities_LDADD=-ladt -lcunit
run_test_utilities_SOURCES=run_test_utilities.c test_helpers.c	\
test_utilities.c

run_test_vector_LDADD=-ladt -lcunit
run_test_vector_SOURCES=run_test_vector.c test_helpers.c test_vector.c 

run_test_list_sort_LDADD=-ladt -lcunit
run_test_list_sort_SOURCES=run_test_list_sort.c test_helpers.c	\
test_list_sort.c

run_test_pqueue_LDADD=-ladt -lcunit
run_test_pqueue_SOURCES=run_test_pqueue.c test_helpers.c test_pqueue.c 

run_test_tree_LDADD=-ladt -lcunit
run_test_tree_SOURCES=run_test_tree.c test_helpers.c test_tree.c 

run_test_heap_LDADD=-ladt -lcunit
run_test_heap_SOURCES=run_test_heap.c test_helpers.c test_heap.c

run_test_logger_LDADD=-ladt -lcunit
run_test_logger_SOURCES=run_test_logger.c test_helpers.c test_logger.c
